from datetime import date,datetime,timedelta

if __name__ == '__main__':
       Now_year=input("输入年份：")
       now_year=datetime.strptime(Now_year,"%Y")
       #将月份调整为6月1日
       now_year=now_year.replace(month=now_year.month+5)
       #通过了解每年的6.1日的星期，去定位具体的第三星期日的日期
       if now_year.isoweekday()==7:#星期日
           now_year = now_year.replace(day=now_year.day + 14)#将每年的6.1转为父亲节日期
           str = now_year.strftime("%Y-%m-%d")#调整父亲节日期格式
           print(f"{Now_year}年的父亲节是：{str}")
       elif now_year.isoweekday()==6:#星期六
           now_year = now_year.replace(day=now_year.day + 15)
           str = now_year.strftime("%Y-%m-%d")
           print(f"{Now_year}年的父亲节是：{str}")
       elif now_year.isoweekday()==5:
           now_year = now_year.replace(day=now_year.day + 16)
           str = now_year.strftime("%Y-%m-%d")
           print(f"{Now_year}年的父亲节是：{str}")
       elif now_year.isoweekday()==4:
           now_year = now_year.replace(day=now_year.day + 17)
           str = now_year.strftime("%Y-%m-%d")
           print(f"{Now_year}年的父亲节是：{str}")
       elif now_year.isoweekday()==3:
           now_year = now_year.replace(day=now_year.day + 18)
           str = now_year.strftime("%Y-%m-%d")
           print(f"{Now_year}年的父亲节是：{str}")
       elif now_year.isoweekday()==2:
           now_year = now_year.replace(day=now_year.day + 19)
           str = now_year.strftime("%Y-%m-%d")
           print(f"{Now_year}年的父亲节是：{str}")
       else:
           now_year = now_year.replace(day=now_year.day + 20)
           str=now_year.strftime("%Y-%m-%d")
           print(f"{Now_year}年的父亲节是：{str}")
